import 'package:json_annotation/json_annotation.dart';

part 'read_pic_info.g.dart';

@JsonSerializable()
class ReadPicInfo {
  @JsonKey(defaultValue: 0)
  final int code;
  @JsonKey(defaultValue: '')
  final String msg;
  @JsonKey(defaultValue: '')
  final String result;

  ReadPicInfo({
    required this.code,
    required this.msg,
    required this.result,
  });

  factory ReadPicInfo.fromJson(Map<String, dynamic> json) =>
      _$ReadPicInfoFromJson(json);

  Map<String, dynamic> toJson() => _$ReadPicInfoToJson(this);
}
